import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import axios from 'axios'
import BaiduMap from 'vue-baidu-map-3x'

const app = createApp(App)

axios.defaults.baseURL = 'http://192.168.1.111:3000/users'


import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router)
app.use(ElementPlus, { locale: zhCn, }).use(BaiduMap, {
    ak: 'kEtGonWj3y6MBD5BCXvvEAjRpKSWYWeq',
})
app.mount('#app')
